package com.lavender.extention.extention_interface;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DestroyMethodTest {

    @Bean(destroyMethod = "destroy")
    public DestroyMethod destroyMethod(){
        return new DestroyMethod();
    }

    public static class DestroyMethod {

        public void destroy() {
            System.out.println("this is destroy method.");
        }

    }

}
